package com.asiainfo.work.service.second;

import com.asiainfo.work.entity.ZtTask;
import com.asiainfo.work.request.zentao.TaskRequest;
import com.asiainfo.work.utils.BaseResponse;
import com.asiainfo.work.utils.PageResponse;
import com.asiainfo.work.vo.TaskActualTimeStatistics;
import com.asiainfo.work.vo.TaskClosedActualTimeStatistics;
import com.asiainfo.work.vo.TaskClosedStatistics;
import com.asiainfo.work.vo.TaskEsTimeStatistics;
import com.asiainfo.work.vo.TaskStatistics;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author: bf
 * @date: 2021/1/6-9:41
 */
public interface ZtTaskService extends IService<ZtTask> {


    /**
     * 查询用户任务数
     */
    BaseResponse<PageResponse<TaskStatistics>> queryTask(TaskRequest taskRequest);

    /**
     * 查询用户任务工时
     */
    BaseResponse<PageResponse<TaskEsTimeStatistics>> queryTaskEsTime(TaskRequest taskRequest);

    /**
     * 查询用户任务完成数
     */
    BaseResponse<PageResponse<TaskClosedStatistics>> queryTaskClosed(TaskRequest taskRequest);

    /**
     * 查询用户完成任务实际工时
     */
    BaseResponse<PageResponse<TaskClosedActualTimeStatistics>> queryTaskClosedActualTime(TaskRequest taskRequest);

    /**
     * 查询用户开发任务实际工时
     */
    BaseResponse<PageResponse<TaskActualTimeStatistics>> queryTaskActualTime(TaskRequest taskRequest);
}
